package com.ruoyi.web.exams.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.sun.jna.platform.unix.solaris.LibKstat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 试卷答题结果概览对象 exam_result
 *
 * @author 范书铭
 * @date 2024-10-02
 */
@ApiModel(value =  "试卷答题结果概览",description = "")
@Data
@EqualsAndHashCode(callSuper = true)
public class ExamUserResult extends BaseEntity{
        private static final long serialVersionUID = 1L;

        private Long id;

        /** 试卷ID */
        @ApiModelProperty(name = "试卷ID",notes = "")
        @Excel(name = "试卷ID")
        private Long pagerId;

        @ApiModelProperty(name = "试卷名称",notes = "")
        @Excel(name = "试卷名称")
        private String pagerName;

        /** 做题人 */
        private Long personalId;

        /** 是否完成 */
        @ApiModelProperty(name = "是否完成",notes = "")
        @Excel(name = "是否完成")
        private Boolean isFinish;

        /** 试卷总分 */
        @ApiModelProperty(name = "试卷总分",notes = "")
        @Excel(name = "试卷总分")
        private Integer totalScore;

        /** 用户得分 */
        @ApiModelProperty(name = "用户得分",notes = "")
        @Excel(name = "用户得分")
        private BigDecimal userScore;

        /** 单选题得分 */
        @ApiModelProperty(name = "单选题得分",notes = "")
        @Excel(name = "单选题得分")
        private BigDecimal singleQuestionScore;

        /** 多选题得分 */
        @ApiModelProperty(name = "多选题得分",notes = "")
        @Excel(name = "多选题得分")
        private BigDecimal multiQuestionScore;

        /** 判断题得分 */
        @ApiModelProperty(name = "判断题得分",notes = "")
        @Excel(name = "判断题得分")
        private BigDecimal judgeQuestionScore;

        /** 开始做题时间 */
        @ApiModelProperty(name = "开始做题时间",notes = "")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @Excel(name = "开始做题时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
        private Date startTime;

        /** 提交答案时间 */
        @ApiModelProperty(name = "提交答案时间",notes = "")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @Excel(name = "提交答案时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
        private Date submitTime;

}